/*
 * 华氏温度转换摄氏温度转换表，使用for替代while
 */

#include <stdio.h>

#define LOWER 0
#define STEP 20
#define UPPER 300

int main() {
    int fahr;

    printf("%4s %6s\n", "Fahr", "Cels");
    for (fahr = UPPER; fahr >= LOWER; fahr -= STEP) {
        printf("%3d %6.1f\n", fahr, (5.0/9.0) * (fahr - 32));
    }

    return 0;
}
